package ld.oauth.blog.mapper.question;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ld.oauth.blog.model.po.question.QuestionCategory;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ld
 * @since 2022-09-25
 */
public interface QuestionCategoryMapper extends BaseMapper<QuestionCategory> {

    /**
     * 根据问题id删除分类集合
     * @param questionId
     * @return
     */
    int removeCategoryIdsByQuestionId(@Param("questionId")Integer questionId);

    /**
     * 根据问题id删除标签集合
     * @param questionId
     * @return
     */
    int removeLabelsIdsByQuestionId(@Param("questionId")Integer questionId);

}
